home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 89 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: sundog.tiac.net!stanr
  2. From: stanr@tiac.net (Stan Ryckman)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Correction to SUMMARY: extern and static question
  5. Date: 12 Jan 1996 21:25:06 GMT
  6. Organization: The Internet Access Company
  7. Message-ID: <4d6jjj$hvk@sundog.tiac.net>
  8. References: <ahicksDKrIDs.62H@netcom.com>
  9. NNTP-Posting-Host: sunspot.tiac.net
  10.  
  11. In article <ahicksDKrIDs.62H@netcom.com>,
  12. Aaron Hicks at Netcom <ahicks@netcom.com> wrote:
  13. >In my original summary I wrote:
  14. >>So a static in a function can be an extern for another module but a global 
  15. >>static can not be seen from other modules.
  16. >
  17. >This should have be:
  18. >This should say that a static can not be seen from another module. 
  19.  
  20. I don't have the whole context here (was away from Usenet for a bit)
  21. but:
  22.  
  23. The "name" of a static cannot be seen from another module; however,
  24. the variable itself can (by, for example, returning its address from
  25. a function, or by storing that address in an extern variable, or by
  26. calling a function in another module with its address).
  27.  
  28. Cheers,
  29. Stan.
  30. --
  31. Stan Ryckman  (stanr@tiac.net) (new e-mail address)
  32.